package com.movie.service.Impl;

import com.movie.beans.Comment;
import com.movie.dao.CommentDAO;
import com.movie.service.CommentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CommentServiceImpl implements CommentService {
    @Resource
    private CommentDAO commentDAO;
    @Override
    public int insert(Comment comment) {
        return commentDAO.insert(comment);
    }

    @Override
    public List<Comment> selectCommentById(Comment comment) {
        return commentDAO.selectCommentById(comment);
    }

    @Override
    public int remove(Long id) {
        return commentDAO.remove(id);
    }
}
